Pod::Spec.new do |s|
  s.name            = "GPUImage-CT"
  s.version         = "1.0.0"
  s.summary         = "GPUImage图像处理库"
  s.homepage        = "https://gitee.com/andney_public/GPUImage-CT.git"
  s.license         = "MIT"
  s.author          = { "Andney" => "taifei_wang@163.com" }
  s.platform        = :ios, "8.0"
  s.source          = { :git => "https://gitee.com/andney_public/GPUImage-CT.git", :tag => s.version.to_s }
  s.requires_arc    = true
  s.default_subspec = 'Core'

  s.subspec 'Core' do |sp|
      sp.resources           = 'resources/GPUImages/*.png'
      sp.ios.frameworks      = 'OpenGLES', 'CoreMedia', 'QuartzCore', 'AVFoundation'
      sp.vendored_frameworks = 'framework/GPUImage.framework'
  end
  
  # 自定义滤镜效果
  s.subspec 'FilterEffect' do |sp|
      sp.source_files = 'src/*.{h,m}', 'src/CustomFilters/*.{h,m}'
      sp.resources    = 'resources/FWFilterResource.bundle'
      sp.pod_target_xcconfig = { 'OTHER_LDFLAGS' => '-ObjC' }
      sp.dependency 'GPUImage-CT/Core'
  end
end

